package action.actionimp;
import Exception.LoginException;
import action.LoginAction;
import dao.LoginDao;
import dao.daoimp.LoginDaoImp;
import entity.User;

public class LoginActionImp implements LoginAction{
	LoginDao dao = new LoginDaoImp();
      User user=new User();
	@Override
	public boolean checkUser(String username,String pwd)  throws LoginException {
		if(username==null||"".equals(username)){
			return false;
		}
		if(pwd==null||"".equals(pwd)){
			return false;
		}
		return dao.login(username,pwd);
	}
	
}
